#ifndef __USER_MANAGER_H__
#define __USER_MANAGER_H__

#include "User.h"
#include <string>
#include <map>
#include <iostream>
//#include "DatabaseManager/UserDataManager.h"
#include "../Utils/Utils.h"
#include "../DatabaseManager/DatabaseManager.h"
using namespace std;

class UserManager
{
private:
    /* data */
    
public:
    //UserManager();
    ReturnStatus registerUser(const string& username, const string& password,const Role role);
    User* loginUser(const string& username, const string& password);
    void logoutUser(int userId);
    User*getUser(int userId);
private:
    string dbName;
    map<int, User*> users;
    map<int,string>sessions;
};


#endif
